import request from '@/utils/request'

export function getCouponSpuRelation(id) {
  return request({
    url: `/coupon/couponspurelation/info/${id}`,
    method: 'post'
  })
}

export function saveCouponSpuRelation(data) {
  return request({
    url: '/coupon/couponspurelation/info/save',
    method: 'post',
    data
  })
}

export function updateCouponSpuRelation(data) {
  return request({
    url: '/coupon/couponspurelation/info/update',
    method: 'post',
    data
  })
}

export function couponSpuRelationList(params) {
  return request({
    url: '/coupon/couponspurelation/list',
    method: 'post',
    params
  })
}

export function deleteCouponSpuRelation(ids) {
  return request({
    url: '/coupon/seckillpromotion/delete',
    method: 'post',
    data: ids
  })
}
